package com.tongqu.aspect;

import com.tongqu.annotation.RequestMapping;
import com.tongqu.po.Request;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

public class HandlerAspect {
    @Pointcut("execution(* com.tongqu.dispatch.*.*(..))")
    public void pointCut() {
    }

    @Around(value = "pointCut()")
    public void before(ProceedingJoinPoint joinPoint) throws Throwable {

        Class<?> aClass = joinPoint.getTarget().getClass();
        //   System.out.println(aClass.getName());
        joinPoint.proceed();
    }
}
